package com.itheima.pattern.t3_prototype.demo2;

public class TestDemo {

    public static void main(String[] args) throws CloneNotSupportedException {
        // 1、创建原型对象
        Citation citation = new Citation();
        // 2、克隆奖状对象
        Citation citation1 = citation.clone();

        citation.setName("张三");
        citation1.setName("李四");

        // 3、调用show方法展示
        citation.show();
        citation1.show();
    }
}
